package com.aaa.doctor.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.Map;

/**
 * @author MuChengGuo
 * @date 2023/3/29 14:13
 * Description: 该实体类就是前端需要的数据格式对象
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SchedulingDto {
    private Long userId;
    private Long deptId;
    /**
     * 1-上午、2-下午、3-晚上
     */
    private String subsectionType;
    /**
     * 存放周一到周日的schedulingType时间段 是门诊还是急诊
     */
    private Collection<String> schedulingType;
    /**
     * 存放星期值班的记录 key 指日期  周一到周日的日期字符串
     *                   value  有值就是1、2 无值是 ""
     */
    private Map<String,String> record;

    public SchedulingDto(Long userId, Long deptId, String subsectionType, Map<String, String> record) {
        this.userId = userId;
        this.deptId = deptId;
        this.subsectionType = subsectionType;
        this.record = record;
    }
}
